using MinimalApi.Endpoints;
using MinimalApi.Models;

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddProblemDetails();

builder.Services.AddTransient<IEmployeesRepository, EmployeesRepository>();


var app = builder.Build();

if (!app.Environment.IsDevelopment())
{
    app.UseExceptionHandler();
}

app.UseStatusCodePages();

app.MapEmployeeEndpoints();




app.Run();